package com.poly;

import com.test.modifier.A;
import com.test.modifier.B;

public class PolyTest {
    public static void main(String[] args) {

    }
}

class A1 {
    public void say() {
        System.out.println("A1 say()");
    }
}

class A2 extends A1 {
    public int sum(int n1, int n2) {
        return n1 + n2;
    }

    // 方法重载
    public int sum(int n1, int n2, int n3) {
        return n1 + n2 + n3;
    }

    public void say(){
        System.out.println("A2 say()");
    }
}